#                                               -*- Autoconf -*-
# Process this file with autoconf to produce a configure script.
AC_PREREQ([2.59])
AC_INIT([DRC], [0.1], [taobao.com])
AC_CONFIG_AUX_DIR(build-aux)
#AC_CONFIG_MACRO_DIR([m4])

AC_CONFIG_SRCDIR(src/repsync.cc)
AM_CONFIG_HEADER(config.h)


# Checks for programs.
#AC_PROG_CC
AC_PROG_CXX
AC_PROG_MAKE_SET
AC_PROG_LIBTOOL

if test "x$GCC" = "xyes"; then
    CFLAGS="$CFLAGS -Wall"
fi

AC_ARG_ENABLE([debug],
[  --enable-debug   Turn on common test],
[case "${enableval}" in
yes) debug=true ;;
no)  debug=false ;;
*) AC_MSG_ERROR([bad value ${enableval} for --enable-debug]) ;;
esac],[debug=false])
AM_CONDITIONAL([DEBUG], [test x"$debug" = xtrue])

# Checks for libraries.

# Checks for header files.
AC_CHECK_SIZEOF([int])
AC_CHECK_SIZEOF([int *])
AC_CHECK_SIZEOF([long])
AC_CHECK_SIZEOF([off_t])

# Checks for typedefs, structures, and compiler characteristics.

# Checks for library functions.

# AM_INIT_AUTOMAKE
AM_INIT_AUTOMAKE([foreign])

AC_CONFIG_FILES(Makefile src/Makefile) 
AC_OUTPUT
